import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wangxin
 * Date: 2024-08-02
 * Time: 15:57
 */
public class Demo4 {
//    public static void main(String[] args) {
//        File dir = new File("text4.txt");
//        System.out.println(dir.isFile());
//        System.out.println(dir.isDirectory());
//        System.out.println(dir.mkdir());
//        System.out.println(dir.isFile());
//        System.out.println(dir.isDirectory());
//        dir.delete();
//    }
public static void main(String[] args) {
    File dir = new File("text4.txt//Hello word");
    System.out.println(dir.isFile());
    System.out.println(dir.isDirectory());
    System.out.println(dir.mkdirs());
    System.out.println(dir.isFile());
    System.out.println(dir.isDirectory());
    dir.delete();
    dir.delete();
}
}
